/**
 * 郭楠project
 * com.gn.micblog.dao
 * UserDaoimpl.java
 * 创建人:TonyGuo 
 * 时间：2016年11月28日-下午10:18:32 
 * 2016Tm公司-版权所有
 */
package com.gn.dao;

import java.util.List;
import java.util.Map;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
import com.gn.entity.User;

@Repository
public class UserDaoImpl implements UserDao {

	@Resource
    private MongoTemplate mongoTemplate;
	
	@Override
	public void insert(User object, String collectionName) {
		mongoTemplate.insert(object, collectionName);
	}

	@Override
	public User findOne(Map<String, Object> params, String collectionName) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<User> findAll(Map<String, Object> params, String collectionName) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void update(Map<String, Object> params, String collectionName) {
		// TODO Auto-generated method stub

	}

	@Override
	public void createCollection(String collectionName) {
		mongoTemplate.createCollection(collectionName);
	}

	@Override
	public void remove(Map<String, Object> params, String collectionName) {
		// TODO Auto-generated method stub

	}

}
